package com.yizhe.dao.impl;

import com.kangli.base.dao.mybatis.EntityDaoSqlMapImpl;
import com.yizhe.dao.LoginRecodesMapper;
import com.yizhe.domain.LoginRecodes;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * Created by Chris on 2016/11/13.
 */
@Service
public class LoginRecodesMapperImpl extends EntityDaoSqlMapImpl<LoginRecodes> implements LoginRecodesMapper {


    @Override
    public LoginRecodes getLastLoginRecodes(LoginRecodes loginRecodes) {
        List<LoginRecodes> list = super.getSqlSession().selectList("getLastLoginRecodes", loginRecodes);
        return list.get(0);
    }
}
